#ifndef FILESADDPROGRESS_H
#define FILESADDPROGRESS_H

#include <QDialog>
#include "ui_FilesAddProgress.h"

class QDirIterator;
class QStringListModel;

class QFilesAddProgress : public QDialog
{
	Q_OBJECT

public:
	QFilesAddProgress(const QString& qsDirectory, const QStringList& qslException, QWidget *parent = 0);
	~QFilesAddProgress();

	QStringList getFilesAdd() const;

private:
	void connectSlots();
	virtual void timerEvent(QTimerEvent *event);


private slots:
	void pushButtonCancelSlotClicked();

private:
	Ui::QFilesAddProgress ui;
	QStringListModel* m_pFilesModel;
	QDirIterator* m_pDirIterator;
	int m_nTimerIdAdd;
	int m_nTimerIdShow;
	QString m_qsDirectory;
	QStringList m_qslException;
	QStringList m_qslFilesAdd;
};

#endif // FILESADDPROGRESS_H
